local zhuque = fk.CreateSkill{
  name = "hx__vermilion_bird&"
}

Fk:loadTranslationTable{
  ["hx__vermilion_bird&"] = "朱雀",
  [":hx__vermilion_bird&"] = "出牌阶段，你可以弃置一张非基本牌，对一名角色造成1点伤害。以此法杀死反贼不执行奖惩。"
}

zhuque:addEffect("active", {
  anim_type = "offensive",
  card_filter = function (self, player, to_select, selected, selected_targets)
    return #selected == 0 and Fk:getCardById(to_select).type ~= Card.TypeBasic
  end,
  target_filter = function (self, player, to_select, selected, selected_cards, card, extra_data)
    return #selected == 0
  end,
  on_use = function (self, room, effect)
    local card = effect.cards
    local player = effect.from
    local target = effect.tos[1]
    room:throwCard(card, zhuque.name, player)
    room:damage{
      from = player,
      to = target,
      damage = 1,
      skillName = zhuque.name,
      damageType = fk.FireDamage 
    }
    room:removePlayerMark(player, "@!!vermilion_bird", 1)
    if player:getMark("@!!vermilion_bird") == 0 then
      player:loseFakeSkill(zhuque.name)
    end
  end
})

zhuque:addAcquireEffect(function (self, player, is_start)
  if not player:hasSkill("#vermilion_bird_delay") then
    player.room:handleAddLoseSkills(player, "#vermilion_bird_delay")
  end
end)

zhuque:addLoseEffect(function (self, player)
  if not player:hasSkill("#vermilion_bird_delay") then
    player.room:handleAddLoseSkills(player, "-#vermilion_bird_delay")
  end
end)


return zhuque